import { createSSRApp } from 'vue'
import pinia from './stores'

import App from './App.vue'

export function createApp() {
  const app = createSSRApp(App)
  // 创建全局的内部音频上下文实例
  const audioContext = uni.createInnerAudioContext()
  app.provide('audioContext', audioContext)
  app.use(pinia)
  return {
    app,
  }
}
